import React, { Component } from 'react';
import { HashRouter, Route, Switch, Redirect} from 'react-router-dom';
import App from "./App";
import Home from "@/pages/home";
import NotFound from "@/pages/notFound";

export default class RouteComponent extends Component {
    render(){
        return (
            <HashRouter>
                <App>
                    <Route path="/" render = { ()=>
                        <Switch>
                            <Route exatc path='/home' component={Home} />
                            <Redirect to="/home" />
                            <Route component={NotFound} />
                        </Switch> 
                    } />
                </App>
            </HashRouter>
        );
    }
}